package *****

@Controller
public class JieTuController extends BaseControllerSupport {
	
	@RequestMapping("uploadJieTu.htm")
	@ResponseBody
	public Object upload(@RequestParam(required = false) MultipartFile uploadFile, HttpServletRequest request) {
		Map<String, Object> resMap = new HashMap<>();
		String id = request.getParameter("id");
		String name = request.getParameter("name");
		System.out.println(id + ":" + name);
		try {
			String url = uploadFile(uploadFile.getInputStream(), "img.jpg");
			System.out.println(url);
			resMap.put("filePath", url);
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		return resMap;
	}
	

}
